package com.gitee.feizns.quickstart.mybatis.flex.spring.boot.autoconfigure;

import com.gitee.feizns.quickstart.web.restful.RestExecutor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 快速入门web restful impl mybatis +自动配置
 * @author feizns
 * @since 2023/04/24
 */
@ConditionalOnClass(RestExecutor.class)
@Configuration
public class QuickstartRestMybatisFlexImplAutoConfiguration {

    /**
     * 快速入门 Mybatis Flex REST Executor impl
     * @return {@link RestExecutor}
     */
    @Bean
    public RestExecutor quickstartMybatisFlexRestExecutorImpl() {
        return new QuickstartMybatisFlexRestExecutorImpl();
    }

}
